package cn.ssq.service.impl;

import cn.ssq.dao.CropCategoryMapper;
import cn.ssq.domain.CropCategory;
import cn.ssq.service.CropCategoryService;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Service;

import java.util.List;

@Service
public class CropCategoryServiceImpl implements CropCategoryService {
    @Autowired
    private CropCategoryMapper cropCategoryMapper;
    @Override
    public List<CropCategory> findByCropCategory() {
        return cropCategoryMapper.findByCropCategory();
    }

    @Override
    public int findCropCategory(String cropCategory) {
        Integer i = cropCategoryMapper.selectByCropCategory(cropCategory);
        return i;

    }
}
